<template>
  <div id="foot">
    <van-goods-action>
      <van-goods-action-icon icon="shop-o" text="店铺" />
      <van-goods-action-icon icon="chat-o" text="客服" />
      <van-goods-action-icon icon="cart-o" text="购物车" />

      <van-goods-action-button
        type="warning"
        text="加入购物车"
        color="rgb(227, 227, 227)"
        @click="dian()"
      />
      <van-goods-action-button type="danger" text="立即购买" color="blue" />
    </van-goods-action>
  </div>
</template>

<script>
export default {
  
  methods: {

    dian() {
      this.$router.push("/cart");
      this.$http({
        url: " http://localhost:3000/cart",
        method: "post",
        data: {
          sell: "满10减10",
          src: "https://hshopb.honorfile.com/pimages/product/6973316858761/428_428_0D9DE3D248C14748E32C825708FDF74A4DF368A7ED7F3F3Cmp.png",
          name: "荣耀 Magic 悬浮键盘",
          pz: "深灰色",
          activeO: "一站式换新",
          activeT: "积分红包",
          price: "799",
          num: "1",
        },
      });
    },
  },
};
</script>

<style scoped>
#foot {
  position: absolute;
  bottom: 0;
}
</style>